/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.maslyk.invitation.enums;

/**
 *
 * @author kris
 */
public enum OverPrintColorEnum
{
    SZARY       (1),
    CZARNY      (2),
    BORDO       (3),
    BRAZ        (4),
    GRANAT      (5),
    FIOLET      (6);

    private int color;

    OverPrintColorEnum(int value)
    {
        this.color = value;
    }

    @Override
    public String toString()
    {
        return super.name();
    }

    public static OverPrintColorEnum getColor(Integer color)
    {
        for (OverPrintColorEnum enm : OverPrintColorEnum.values())
        {
            if (enm.getColor() == color)
                return enm;
        }
        return null;
    }

    public int getColor()
    {
        return color;
    }
}
